import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
//创建且声明一个对象
export const store = new Vuex.Store({
  state: {
    navigation: []
  },
  mutations: {
    btn_navigation(state, data) {
      state.navigation = data;
    }
  },
  // vuex中的计算属性
  getters: {}
});
